import { FC } from 'react';
import Menu, {MenuProps} from './menu';
import MenuItem, {MenuItemProps} from './menuItem';
import SubMenu, {SubMenuProps} from './subMenu';


export type MenuComponent = FC<MenuProps> & {
    Item : FC<MenuItemProps>,
    SubMenu : FC<SubMenuProps>
};

const ChangeMenu = Menu as MenuComponent; 

ChangeMenu.Item = MenuItem;
ChangeMenu.SubMenu = SubMenu;


export default ChangeMenu;